/*
 *    Copyright (c) 2018-2025, fanxl All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: fanxl (xunlian_fan001@126.com)
 */

package com.taiji.dicom4cloud.smart.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.taiji.dicom4cloud.smart.model.entity.RfidRecord;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author fanxl
 * @date 2021-07-06 10:46:51
 */
public interface AlarmRecordService extends IService<RfidRecord> {

    /**
     * 保存记录
     *
     * @param record
     * @return
     */
    Boolean saveRecord(RfidRecord record);

    /**
     * 查询报警记录
     * @param orgId
     * @return
     */
    Page getAlarmRecords(Integer current,Integer total, String orgId,String type);


    /**
     * 保存摄像头预警消息
     * @param msg
     * @return
     */
    RfidRecord saveCameraData(JSONObject msg);


    Page getAlarmRecordPage(Page page, RfidRecord rfidRecord);

    /**
     * 获取视频播放地址
     * @param map
     * @return
     */
    List<String> getVideoUrl(Map<String,String> map);
}
